package org.qqcui.designpattern.patterns.builder.builder.concrete;

import org.qqcui.designpattern.patterns.builder.builder.builder.HouseBuilder;

/**
 * 建造普通房子具体实现类，具体建造者角色
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/4/28 15:58
 **/
public class CommonHouseBuilder extends HouseBuilder {
    @Override
    public void buildBasic() {
        System.out.println("给普通房子打地基5米");
        house.setBasic("5米");
    }

    @Override
    public void buildWalls() {
        System.out.println("给普通房子砌墙");
        house.setWalls("4面");
    }

    @Override
    public void roofed() {
        System.out.println("给普通房子封顶");
        house.setRoof("1顶");
    }
}
